/*-*
 * FILENAME  :
 *    $HeadURL$
 *
 * STATUS  :
 *    $Revision$
 *
 *    $Author$
 *    $Date$
 *  
 *    
 * Copyright (c) 2011 Gonalge Ltda. All rights reserved.
 *
 ****************************************************************/

package org.gonalge.arbolrojonegro.dto;

import org.gonalge.arbolrojonegro.type.ColorNodo;

/**
 * 
 * @author Geremias Gonzalez
 */
public class Nodo {

    private Nodo RD, RI, RA, RS;

    private ColorNodo color;

    private Object eleObj;

    private int ele;

    private int x;

    private int y;

    public Nodo() {
        RD = RI = RA = RS = null;
        ele = x = y = 0;
        color = ColorNodo.NEGRO;
    }

    public void setRD(Nodo RD) {
        this.RD = RD;
    }

    public Nodo getRD() {
        return RD;
    }

    public void setRI(Nodo RI) {
        this.RI = RI;
    }

    public Nodo getRI() {
        return RI;
    }

    public void setEle(int Ele) {
        this.ele = Ele;
    }

    public int getEle() {
        return ele;
    }

    public void setColor(ColorNodo color) {
        this.color = color;
    }

    public ColorNodo getColor() {
        return color;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getX() {
        return x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getY() {
        return y;
    }

    public void setRA(Nodo RA) {
        this.RA = RA;
    }

    public Nodo getRA() {
        return RA;
    }

    public void setRS(Nodo RS) {
        this.RS = RS;
    }

    public Nodo getRS() {
        return RS;
    }

    public void setEleObj(Object EleO) {
        this.eleObj = EleO;
    }

    public Object getEleObj() {
        return eleObj;
    }
}
